package JLB_Chapter_08;

public class code_08_06 {
    static void pop() throws NegativeArraySizeException {
        int[] arr = new int[-3];
    }
    public static void main(String[] args) {
        try{
            pop();
        } catch(NegativeArraySizeException e) {
            e.printStackTrace();
            System.out.println("pop方法抛出的异常");
        }
    }
}
